package org.example.demo1.Entity;


import io.fabric8.kubernetes.client.utils.Serialization;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


//聊天消息实体类 用于再redis中存储历史聊天记录
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChatEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 会话ID
     */
    private String chatId;

    /**
     * 消息类型 (user/assistant/system)
     */
    private String type;

    /**
     * 消息内容
     */
    private String text;
}
